package com.xja.seckill.pay.service.impl;

import com.xja.seckill.order.OrderClientApi;
import com.xja.seckill.pay.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PayServiceImpl implements PayService {
    @Autowired
    private OrderClientApi orderClientApi;

    @Override
    public String payOrder(String code) {
        orderClientApi.payOrder (code);
        return "支付成功";
    }
}
